home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / prog / cm / cmtset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-06  |  979 b   |  30 lines

  1. // CmTSet.h
  2. // -----------------------------------------------------------------
  3. // Compendium - C++ Container Class Library
  4. // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
  5. // -----------------------------------------------------------------
  6. // Set template definition.
  7. // -----------------------------------------------------------------
  8.  
  9. #ifndef _CMTSET_H
  10. #define _CMTSET_H
  11.  
  12. #include <cm/include/cmthash.h>
  13.  
  14. template <class T> class CmTSet : public CmTHashTable<T> {  // Set definition.
  15. public:
  16.   CmTSet(unsigned = 10);                    // Default set constructor.
  17.   CmTSet(const CmTSet<T>&);                 // Set copy constructor.
  18.  ~CmTSet() {}                               // Set destructor.
  19.  
  20.   CmTSet<T>& operator=(const CmTSet<T>&);   // Assignment operator.
  21.  
  22.   Bool add(const T&);                       // Add object to set.
  23. };
  24.  
  25. #if defined(__TURBOC__) || defined(__xlC__)
  26. #include <cm/include/cmtset.cc>
  27. #endif
  28.  
  29. #endif
  30.